package com.sg.business.document.editor;

import com.sg.business.model.DummyModel;
import com.sg.widgets.part.editor.fields.value.IFieldEditableHandler;

public class NoSelectDeliveryRequireEdit implements IFieldEditableHandler {

	public NoSelectDeliveryRequireEdit() {
	}

	@Override
	public boolean isEditable(Object data, String key, Object value) {
		if(data instanceof DummyModel) {
			DummyModel dummy = (DummyModel)data;			
			Object deliveryRequire = dummy.getValue(DummyModel.DELIVERY_REQUIRE);
			if("".equals(deliveryRequire)) {
				return true;
			}
		}
		return false;
	}

}
